package com.deanlib.cabinet.ui.widget.dialog;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import androidx.annotation.NonNull;

import com.deanlib.cabinet.R;


/**
 * @auther Dean
 * @create 2020/8/11
 */
public class CommonLoadingDialog extends AbsLoadingDialog {
    public CommonLoadingDialog(@NonNull Context context) {
        super(context, R.style.PAppTheme_TransparentDialog);
        View loadView = LayoutInflater.from(getContext()).inflate(R.layout.layout_dialog_common_loading, null);
        setView(loadView);
    }

//    public CommonLoadingDialog(@NonNull Context context, @NonNull String message) {
//        super(context, R.style.Theme_AppCompat_Light_Dialog);
//        View loadView = LayoutInflater.from(getContext()).inflate(com.deanlib.ootblite.R.layout.dialog_loading, null);
//        setView(loadView);
//        TextView tvMessage = loadView.findViewById(com.deanlib.ootblite.R.id.message);
//        tvMessage.setVisibility(View.VISIBLE);
//        tvMessage.setText(message);
//    }
}
